﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Department/Master.Master" AutoEventWireup="true" CodeBehind="GenerateDisbursementForm.aspx.cs" Inherits="logicunivesityinventorystore.Department.GenerateDisbursementForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content6" runat="server" 
    contentplaceholderid="ContentPlaceHolder2">
        <h1>Generate Disbursement Form</h1>
    <asp:Label ID="Label1" runat="server" Text="Select Department"></asp:Label>
    &nbsp;&nbsp;&nbsp;
    <asp:DropDownList ID="ddlDepartmentName" runat="server" AutoPostBack="True" 
            DataSourceID="ObjectDataSource1" DataTextField="DepartmentName" 
            DataValueField="DepartmentCode" Height="23px" Width="216px">
    </asp:DropDownList>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="FindAll" TypeName="DataAccessLayer.DepartmentFacade">
        </asp:ObjectDataSource>
        <br />
        <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            Width="547px" BorderStyle="Outset" DataSourceID="ObjectDataSource2" 
            GridLines="None">
        <Columns>
            <asp:BoundField DataField="Description" HeaderText="Stationary Name" />
            <asp:BoundField DataField="OrderedQty" HeaderText="Ordered Quantity" />
            <asp:BoundField DataField="ActualQty" HeaderText="Actual Quantity" />
        </Columns>
    </asp:GridView>
            <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
            SelectMethod="GetDisbursementDetails" 
            TypeName="DataAccessLayer.RetrivalListFacade">
                <SelectParameters>
                    <asp:ControlParameter ControlID="ddlDepartmentName" Name="departmentCode" 
                        PropertyName="SelectedValue" Type="String" />
                </SelectParameters>
        </asp:ObjectDataSource>
        &nbsp;&nbsp;
        <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
            DataSourceID="ObjectDataSource3" GridLines="None" Height="50px" Width="349px">
            <Fields>
                <asp:BoundField DataField="CollectionPoint" HeaderText="Collection Point" />
                <asp:BoundField DataField="EmployeeName" HeaderText="Representative Name" />
            </Fields>
        </asp:DetailsView>
        <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" 
            SelectMethod="GetCollectionPointAndRepresentative" 
            TypeName="DataAccessLayer.DepartmentFacade">
            <SelectParameters>
                <asp:ControlParameter ControlID="ddlDepartmentName" Name="deptID" 
                    PropertyName="SelectedValue" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>

        <br />
        <br />
    <asp:Label ID="Label4" runat="server" Text="Sign"></asp:Label>
    &nbsp;&nbsp;
    <asp:Label ID="Label5" runat="server" Text="______________________________"></asp:Label>
        <br />
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btnPrint" runat="server" CssClass="ButtonStyle" Text="Print" 
            Width="52px" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
        <br />
        <br />
            </asp:Content>

